package com.leyou.item;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author 付
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class test {
    @Autowired
    private AmqpTemplate amqpTemplate;
    @Test
    public void test(){
        amqpTemplate.convertAndSend("slmple_queue",123L);
    }
}
